import { useSelector } from "react-redux"
import { StateType } from "../store"
import { PageInfoType } from "../store/pageInfoReducer"

function useGetPageInfo() {
    // 这个StateType是store存储的类型
    const pageInfo = useSelector<StateType>(state => state.pageInfo) as PageInfoType

    return pageInfo
}

export default useGetPageInfo
